package com.geekgo.ladder.sys.entity;

import com.baomidou.mybatisplus.annotations.TableName;
import com.geekgo.ladder.core.base.BaseModel;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author HeHaoyang
 * @since 2016-12-23
 */
@TableName("sys_user")
public class SysUser extends BaseModel {

    private static final long serialVersionUID = 1L;

	/**
	 * 登录账户
	 */
	@TableField(value="login_name")
	private String loginName;
	/**
	 * 登录密码
	 */
	@TableField(value="login_password")
	private String loginPassword;
	/**
	 * 昵称
	 */
	@TableField(value="nick_name")
	private String nickName;
	/**
	 * 电话
	 */
	@TableField(value="phone_")
	private String phone;
	/**
	 * (0:未知;1:男;2:女)
	 */
	@TableField(value="sex_")
	private Integer sex;
	/**
	 * 头像
	 */
	@TableField(value="avatar_")
	private String avatar;
	/**
	 * 锁定标志(1:锁定;0:激活)
	 */
	@TableField(value="locked_")
	private Integer locked;


	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public String getLoginPassword() {
		return loginPassword;
	}

	public void setLoginPassword(String loginPassword) {
		this.loginPassword = loginPassword;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public Integer getSex() {
		return sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	public String getAvatar() {
		return avatar;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}

	public Integer getLocked() {
		return locked;
	}

	public void setLocked(Integer locked) {
		this.locked = locked;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
